package com.wangxiaonan.wxwork.util;

import org.apache.commons.lang3.StringUtils;

import java.util.UUID;

/**
 * @Author: wangxiaonan
 * @Date: 2018/8/22
 **/
public class IDUtil {
    public static String getUUID32() {
        String id = UUID.randomUUID().toString();
        id = StringUtils.replaceAll(id, "-", "");
        return id;
    }

    public static String getUUID16() {
        String id = UUID.randomUUID().toString();
        id = StringUtils.replaceAll(id, "-", "");
        return id;
    }
}
